added SSCLI 1.0
[windows-sources.git] / shared source / sscli20 / tools / nmake / make.cmd
blobc4a0e71822e9b7c708f12c3ab2d632f143fb5356
1 @if "%_echo%"=="" echo off
2 REM ==++==
3 REM
4 REM
5 REM Copyright (c) 2006 Microsoft Corporation. All rights reserved.
6 REM
7 REM The use and distribution terms for this software are contained in the file
8 REM named license.txt, which can be found in the root of this distribution.
9 REM By using this software in any fashion, you are agreeing to be bound by the
10 REM terms of this license.
11 REM
12 REM You must not remove this notice, or any other, from this software.
13 REM
14 REM
15 REM ==--==
16 if not exist obj%BUILD_ALT_DIR% goto NoObjDir
17 if "%1"=="clean" rmdir /s /q obj%BUILD_ALT_DIR%
18 if "%1"=="-c" rmdir /s /q obj%BUILD_ALT_DIR%
19 :NoObjDir
20 if not exist obj%BUILD_ALT_DIR% md obj%BUILD_ALT_DIR%
21 if not exist obj%BUILD_ALT_DIR%\rotor_x86 md obj%BUILD_ALT_DIR%\rotor_x86
22 type default.mac >obj%BUILD_ALT_DIR%\_objects.mac
23 nmake ROTOR_X86=1 -f makefile.win >build%BUILD_ALT_DIR%.log 2>&1
24 if ERRORLEVEL 1 goto :ReportError
25 echo Build successful.
26 goto :EOF
28 :ReportError
29 if '%BUILDALL_BUILDING%'=='' (
30 type build%BUILD_ALT_DIR%.log
31 echo.
32 echo Build failed.
34 exit /B 1